<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\SysUsers */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="sys-users-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'parent_id')->textInput() ?>

    <?= $form->field($model, 'phone')->textInput(['maxlength' => 11]) ?>

    <?= $form->field($model, 'parent_phone')->textInput(['maxlength' => 11]) ?>

    <?= $form->field($model, 'type')->textInput() ?>

    <?= $form->field($model, 'password')->passwordInput(['maxlength' => 120]) ?>

    <?= $form->field($model, 'role')->textInput() ?>

    <?= $form->field($model, 'last_login_time')->textInput() ?>

    <?= $form->field($model, 'truename')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'qq')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'qq_openid')->textInput(['maxlength' => 255]) ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => 50]) ?>

    <?= $form->field($model, 'weixin')->textInput(['maxlength' => 50]) ?>

    <?= $form->field($model, 'wx_openid')->textInput(['maxlength' => 255]) ?>

    <?= $form->field($model, 'tel')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'company_name')->textInput(['maxlength' => 40]) ?>

    <?= $form->field($model, 'company_addr')->textInput(['maxlength' => 100]) ?>

    <?= $form->field($model, 'company_regnum')->textInput(['maxlength' => 40]) ?>

    <?= $form->field($model, 'company_range')->textInput(['maxlength' => 500]) ?>

    <?= $form->field($model, 'company_spec_range')->textInput(['maxlength' => 500]) ?>

    <?= $form->field($model, 'company_type')->textInput(['maxlength' => 20]) ?>

    <?= $form->field($model, 'company_est_time')->textInput(['maxlength' => 500]) ?>

    <?= $form->field($model, 'company_licence')->textInput(['maxlength' => 100]) ?>

    <?= $form->field($model, 'reg_time')->textInput() ?>

    <?= $form->field($model, 'status')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
